﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.ChartView;

namespace Broker.View.ProductView
{
    /// <summary>
    /// TestForm.xaml 的交互逻辑
    /// </summary>
    public partial class TestForm 
    {
        public TestForm()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(TestForm_Loaded);
        }

        void TestForm_Loaded(object sender, RoutedEventArgs e)
        {
            IList<Report> reports = new List<Report>();

            for (int i = 0; i < 1000; i++)
            {
                Report r = new Report(i*100,i*50,i);

                reports.Add(r);
            }

            ls.ItemsSource = reports;
        }
    }

    public class Report
    {
        public Report(int sale, int amount, int period)
        {
            Sale = sale;
            Amount = amount;
            Period = period;
        }

        public int Sale { get; set; }

        public int? Amount { get; set; }

        public int Period { get; set; }
    }

}
